import 'package:flutter_pleasure_video/page/backstage/add_source_page.dart';
import 'package:flutter_pleasure_video/page/backstage/backstage_home.dart';
import 'package:flutter_pleasure_video/page/backstage/resources_description_page.dart';
import 'package:flutter_pleasure_video/page/backstage/scan_yck/yck_source_list_page.dart';
import 'package:flutter_pleasure_video/page/home_page.dart';
import '../page/scan/scan_qr_code_page.dart';
import '../page/backstage/scan_yck/source_analyze_page.dart';
import 'package:flutter_pleasure_video/test/feed_webview_page.dart';
import 'package:get/get.dart';
import 'package:get/get_navigation/src/routes/get_route.dart';

class RouteConfig{
  ///主页面
  static final String main = "/";

  ///扫描二维码界面
  static final String scanQRCodePage = "/scanQRCodePage";

  ///解析
  static final String sourceAnalyzePage = "/sourceAnalyzePage";

  ///后台主页
  static final String backstageHome = "/backstageHome";

  ///添加资源
  static final String addSourcePage = "/backstageHome/addSourcePage";

  ///资源提示页
  static final String resourcesDescriptionPage = "/backstageHome/addSourcePage/resourcesDescriptionPage";


  ///资源提示页
  static final String feedWebViewPage = "/feedWebViewPage";

  ///资源库网页解析列表界面
  static final String yckSourceListPage = "/yckSourceListPage";

  ///别名映射页面
  static final List<GetPage> getPages = [
    GetPage(name: main, page: () => HomePage()),
    GetPage(name: scanQRCodePage, page: () => ScanQRCodePage()),
    GetPage(name: sourceAnalyzePage, page: () => SourceAnalyzePage(Get.arguments)),
    GetPage(name: backstageHome, page: () => BackstageHome()),
    GetPage(name: addSourcePage, page: () => AddSourcePage()),
    GetPage(name: resourcesDescriptionPage, page: () => ResourcesDescriptionPage()),
    GetPage(name: feedWebViewPage, page: () => FeedWebViewPage()),
    GetPage(name: yckSourceListPage, page: () => YckSourceListPage()),
  ];
}
